import { useParams, useLocation, useMatch } from "react-router-dom"
const Mine = () => {
    //通过hook来获取动态的路由参数
    let params = useParams();
    console.log(params)
    let location = useLocation()
    console.log(location)
    let match = useMatch("/mine/*")
    console.log(match)
    return (
        <fieldset>
            <legend>个人中心</legend>
            <h1>个人中心</h1>
        </fieldset>
    )
}

export default Mine